<%--
  Created by IntelliJ IDEA.
  User: wsx
  Date: 2017/6/2
  Time: 23:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/header.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改商品</title>
    <link rel="stylesheet" href="${Layui}/css/layui.css" media="all">
    <script src="${Layui}/layui.js" charset="utf-8"></script>
    <script src="${jquery}/jquery-3.1.1.js" charset="utf-8"></script>
    <script src="${Js}/admin/purgoods.js" charset="utf-8"></script>
</head>
<body style="margin-left:2px">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>商品类型操作</legend>
</fieldset>
<form class="layui-form" action="/admin/addgoodstype?flag=1" method="post">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">商品类型</label>
            <div class="layui-input-inline">
                <input style="width: 237.33px; " type="text" id="addgoodstypetxt" name="addgoodstype"
                       placeholder="输入要添加的商品类型" required
                       autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-block">
                <button class="layui-btn  layui-btn-small" lay-submit lay-filter="formDemo" id="addgoodstypebtn">确认添加
                </button>
            </div>
        </div>
    </div>
</form>
<form class="layui-form" action="/admin/addgoodstype?flag=3" method="post">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">选择要删除的商品类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" style="width: 190px; ">
                    <c:forEach items="${SysDict['goods_type']}" var="type">
                        <option value="${type.key}">${type.value}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-block">
                <button align="center" class="layui-btn layui-btn-small" lay-submit
                        lay-filter="formDemo  layui-btn-small"
                        id="delgoodstypebtn">确认删除
                </button>
            </div>
        </div>
    </div>
</form>
<form class="layui-form" action="/admin/addgoodstype?flag=2" method="post">
    <div class="layui-form-item">

        <div class="layui-inline">
            <label class="layui-form-label">选择要修改的商品类型</label>

            <div class="layui-input-block">
                <select name="type" lay-verify="required" style="width: 190px; ">
                    <c:forEach items="${SysDict['goods_type']}" var="type">
                        <option value="${type.key}">${type.value}</option>
                    </c:forEach>
                </select>

            </div>
        </div>&nbsp;&nbsp;&nbsp;
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="addgoodstype" placeholder="输入要修改的商品类型"
                       autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-block">
                <button class="layui-btn  layui-btn-small" lay-submit lay-filter="formDemo"
                        id="updategoodstypebtn">
                    确认修改
                </button>
            </div>
        </div>
    </div>
</form>
</body>
</html>
